package com.snap.testapplication;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;

public class MainActivity extends AppCompatActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    public void goTo(View view) {
        Intent intent=new Intent(this,SecondActivity.class);
        startActivity(intent);
    }


    public void finsh(View view) {
        /*结束进程,线程依赖进程，进程结束，一切就结束了*/
//        System.exit(0);
    }
}